﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for Index.xaml
    /// </summary>
    public partial class Index : Window
    {
        public Index()
        {
            InitializeComponent();
        }

        private void btnbuscar_Click(object sender, RoutedEventArgs e)
        {
            Buscar buscar = new Buscar();
            buscar.Show();
        }

        private void btnlogin_Click(object sender, RoutedEventArgs e)
        {
            if (txtusuario.Text == "usuario") 
            {
                Login login = new Login();
                login.Show();
            }
            else if (txtusuario.Text == "funcionario")
            {
                LoginFuncionario loginfuncionario = new LoginFuncionario();
                loginfuncionario.Show();
            }
        }

        private void btncriarconta_Click(object sender, RoutedEventArgs e)
        {
           MainWindow cadastro = new MainWindow ();
           cadastro.Show();

        }

        private void btncompraringresso_Click(object sender, RoutedEventArgs e)
        {
            Window1 comprar = new Window1();
            comprar.Show();
        }

        private void image20_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Clube  clube = new Clube();
            clube.Show();
            clube.label1.Content = "Botafogo F.R - O Glorioso";
        }

        private void image14_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Clube clube = new Clube();
            clube.Show();
            clube.label1.Content = "Fluminense F.C - Time de guerreiros";
        }

      

        private void image20_MouseMove(object sender, MouseEventArgs e)
        {
            Clube clube = new Clube();
            clube.image20.Height =10;
            clube.image20.Width = 10;
            
            //clube.image20.Source = "/Interface_Plus;component/Images/botafogo2.gif";
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }
    }
}
